home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
First Tutorial
/
Session 3
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
729b
|
38 lines
(setq symbols '(a b c d e f g))
(def-symbol
sax symbols
clarinet symbols
trumpet symbols
violin symbols
)
(def-length
sax '((1/16 1/32 1/32 1/16))
clarinet '(1/32 1/16 1/32 1/16)
trumpet '(1/8 1/16)
violin '((1/16 -1/16))
)
(def-channel
instr1 1
instr2 2
instr3 3
instr4 4
)
(setq tonals (activate-tonality (blues1 c 5) (chromatic c 6)))
(midiport :printer)
(def-tempo 120)
(compile-song-p "ccl;output:" 1/4 "Session 3"
; |---|---|---|---|
changes tonals "...... ..."
sax changes "- - -- - --- --"
clarinet changes " - -- -- -- ---"
trumpet changes " - -- -- -- -"
violin changes " - -- -----"
)